#include <stdlib.h>
#include <stdio.h>
#include <linux/types.h>

void main()
{
	int cnt, value;
	unsigned int  *ptr, *ptr1; 
	short reg15,reg21,reg22,reg24;

	for(reg15=1;reg15<20;reg15++)
	for(reg21=1;reg21<20;reg21++)
	for(reg22=1;reg22<20;reg22++)
	for(reg24=1;reg24<20;reg24++)
{

		

	ptr1 =(unsigned int *)malloc(1028*sizeof(unsigned int));
	
	for(ptr = ptr1, cnt =1; cnt <1025; cnt++, ptr +=sizeof(unsigned int)) {
		if(cnt%128 ==0) 
			printf("write=>%d\n", cnt);
		*ptr= cnt;
	}

	for(ptr = ptr1, cnt =1,value =1; value <1025; value++, ptr +=sizeof(unsigned int)) {
                if(value%128 ==0)
                        printf("read=>%d\n", value);

		if(value == *ptr) {
			printf("+\n");
			cnt++;
			if(cnt ==100)
				printf("match 100 times\n");
		} else
		 printf("-\n");
        }


	free(ptr1);}

	
	
}
